(C) 1996 AROS - The Amiga Replacement OS


NAME
#include <utility/tagitem.h>
#include <proto/utility.h>
struct TagItem * CloneTagItems()
SYNOPSIS
struct TagItem * tagList

LOCATION
In UtilityBase at offset 12
FUNCTION
Duplicates a TagList. The input TagList can be NULL, in which case an empty TagList will be returned.

INPUTS
tagList
The TagList that you want to clone
RESULT
A TagList which contains a copy of the TagItems contained in the original list. The list is cloned so that calling FindTagItem() on a tag in the clone will return the same value as that in the original list (assuming the original has not been modified).

NOTES
EXAMPLE
struct TagItem *tagList, *tagListClone;

\* Set up the original taglist tagList *\

tagListClone = CloneTagItems( tagList );

\* Do what you want with your TagList here *\

FreeTagItems( tagListClone );

BUGS
SEE ALSO
AllocateTagItems(), FreeTagItems(), RefreshTagItemClones()
INTERNALS
HISTORY
03.02.1997 ldp
Changed <proto/*_protos.h> to <proto/*.h>
02.02.1997 iaint
Some bug fixes, math functions and native Amiga support
27.01.1997 ldp
Polish
10.12.1996 aros
Moved #include into first column to allow makedepend to see it.
24.10.1996 aros
Use the official AROS macros over the __AROS versions.
23.10.1996 aros
Formatted

Added parens to all assignments which are used truth expressions

22.10.1996 aros
Some more utility.library functions.